package com.ruoyi.project.jiaqin.supplycommentreply.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.jiaqin.supplycommentreply.mapper.SupplyCommentReplyMapper;
import com.ruoyi.project.jiaqin.supplycommentreply.domain.SupplyCommentReply;
import com.ruoyi.project.jiaqin.supplycommentreply.service.ISupplyCommentReplyService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 供应评论回复Service业务层处理
 * 
 * @author admin
 * @date 2021-02-22
 */
@Service
public class SupplyCommentReplyServiceImpl implements ISupplyCommentReplyService 
{
    @Autowired
    private SupplyCommentReplyMapper supplyCommentReplyMapper;

    /**
     * 查询供应评论回复
     * 
     * @param id 供应评论回复ID
     * @return 供应评论回复
     */
    @Override
    public SupplyCommentReply selectSupplyCommentReplyById(String id)
    {
        return supplyCommentReplyMapper.selectSupplyCommentReplyById(id);
    }

    /**
     * 查询供应评论回复列表
     * 
     * @param supplyCommentReply 供应评论回复
     * @return 供应评论回复
     */
    @Override
    public List<SupplyCommentReply> selectSupplyCommentReplyList(SupplyCommentReply supplyCommentReply)
    {
        return supplyCommentReplyMapper.selectSupplyCommentReplyList(supplyCommentReply);
    }

    /**
     * 新增供应评论回复
     * 
     * @param supplyCommentReply 供应评论回复
     * @return 结果
     */
    @Override
    public int insertSupplyCommentReply(SupplyCommentReply supplyCommentReply)
    {
        return supplyCommentReplyMapper.insertSupplyCommentReply(supplyCommentReply);
    }

    /**
     * 修改供应评论回复
     * 
     * @param supplyCommentReply 供应评论回复
     * @return 结果
     */
    @Override
    public int updateSupplyCommentReply(SupplyCommentReply supplyCommentReply)
    {
        return supplyCommentReplyMapper.updateSupplyCommentReply(supplyCommentReply);
    }

    /**
     * 删除供应评论回复对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSupplyCommentReplyByIds(String ids)
    {
        return supplyCommentReplyMapper.deleteSupplyCommentReplyByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除供应评论回复信息
     * 
     * @param id 供应评论回复ID
     * @return 结果
     */
    @Override
    public int deleteSupplyCommentReplyById(String id)
    {
        return supplyCommentReplyMapper.deleteSupplyCommentReplyById(id);
    }
}
